﻿using Common.Infrastructure;
using System;
using System.Collections.Generic;
using System.Text;

namespace StatsData.Data.Entity
{
    /// <summary>
    /// 不良，包含不良登记与送修不良
    /// </summary>
    public class t_bad : EntityBase
    {
        [EntityFieldLength(50)]
        public string line_code { get; set; }

        /// <summary>
        /// 工序名称
        /// </summary>
        [EntityFieldLength(50)]
        public string procedure_name { get; set; }

        public string produre_name_en { get; set; }

        public string produre_name_th { get; set; }

        public string line_name { get; set; }

        public string line_name_en { get; set; }

        public string line_name_th { get; set; }

        /// <summary>
        /// 工序编码
        /// </summary>
        [EntityFieldLength(50)]
        public string procedure_code { get; set; }

        /// <summary>
        /// 不良原因名称
        /// </summary>
        [EntityFieldLength(50)]
        public string bad_code { get; set; }

        /// <summary>
        /// 不良原因编码
        /// </summary>
        [EntityFieldLength(50)]
        public string bad_name { get; set; }

        /// <summary>
        /// en
        /// </summary>
        public string bad_name_en { get; set; }

        public string bad_name_th { get; set; }

        /// <summary>
        /// 不良类型：不良登记或送修不良
        /// </summary>
        [EntityFieldLength(20)]
        public string type { get; set; }

        public string type_en { get; set; }

        public string type_th { get; set; }

        /// <summary>
        /// 不良数量
        /// </summary>
        public decimal qty { get; set; }

        /// <summary>
        /// 日期
        /// </summary>
        public DateTime curr_date { get; set; }
    }
}
